package com.maiji.cloud.entities.shopingmall;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * 订单返现分享助力活动记录表
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
@Table(name = "share_order_log")
public class ShareOrderLog {

	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
	private String uuId; // 主键

	@Column(name = "order_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String orderId; // 订单ID

	@Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String userId; // 用户ID

    @Column(name = "order_money", type = MySqlTypeConstant.DOUBLE, length = 8, decimalLength = 2)
    private Double orderMoney; // 订单金额

    @Column(name = "max_retur_money", type = MySqlTypeConstant.DOUBLE, length = 8, decimalLength = 2)
    private Double maxReturMoney; // 最大返现金额

    @Column(name = "retur_money", type = MySqlTypeConstant.DOUBLE, length = 8, decimalLength = 2)
    private Double returMoney; // 最终返现金额

	@Column(name = "share_time", type = MySqlTypeConstant.DATETIME)
	private Date shareTime; // 分享时间

	@Column(name = "end_time", type = MySqlTypeConstant.DATETIME)
	private Date endTime; // 助力活动结束时间

	@Column(name = "settlement", type = MySqlTypeConstant.BIT)
	private Boolean settlement; // 是否结算

	@Column(name = "termination", type = MySqlTypeConstant.BIT)
	private Boolean termination; // 是否终止活动（申请退款等）

}
